﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataModel;

namespace WinDAL
{
    public class BookDal
    {
        private List<Book> _lstBook = new List<Book>();
        public List<Book> LstBook
        {
            get { return _lstBook; }
            set { _lstBook = value; }
        }

        public List<Book> GetBooks()
        {
            List<Book> lst = new List<Book>();
            lst.Add(new Book() { ID = 1, Name = "java精通21天" });
            lst.Add(new Book() { ID = 2, Name = "java精通22天" });
            lst.Add(new Book() { ID = 3, Name = "java精通23天" });
            lst.Add(new Book() { ID = 4, Name = "java精通24天" });
            return lst;
        }
    }
}
